import{p as e}from"./CtbHscGXagutd.js";import{_ as n}from"./CtybWkkwagutd.js";const i="/assets/BCYNlWaP22HqeX.mjs";let s;async function c(){if(s==null){const t=await n(()=>import("./DUPfPbBF1VyUMR.js"),[]);t.GlobalWorkerOptions.workerSrc=i,s=t}return s}const a=e("pdf-basic");async function p(t){const{getDocument:r}=await c(),o=r(t);return a.assert(o,"doc is empty"),o}async function u(t){if(t==null)return;const o=await(await p(t))?.promise;return a.assert(o,"pdf empty"),o}export{c as g,u as p};